package com.itheima.before_leyou_store.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.before_leyou_store.pojo.Sku;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SkuMapper extends BaseMapper<Sku> {
    @Select("SELECT COUNT(1)FROM tb_sku")
    int findTotal();
    @Select("SELECT * FROM tb_sku LIMIT #{i},5000")
    List<Sku> findSkus(@Param("i") int i);
    @Select("SELECT * FROM tb_sku where id ='100000003145'")
    Sku test();
}
